import 'package:flutter/material.dart';

class IndexNavigatorItem{
  final String title;
  final String imageUri;
  final void Function(BuildContext context) onTap;

  IndexNavigatorItem(this.title, this.imageUri, this.onTap);
}

List<IndexNavigatorItem> navigatorItemList = [
  IndexNavigatorItem('整租', 'static/images/home.svg', (context) => (BuildContext context){
    Navigator.of(context).pushNamed('/login');
  }),
  IndexNavigatorItem('合租', 'static/images/mine.svg', (context) => (BuildContext context){
    Navigator.of(context).pushNamed('/login');
  }),
  IndexNavigatorItem('地图找房', 'static/images/map.svg', (context) => (BuildContext context){
    Navigator.of(context).pushNamed('/login');
  }),
  IndexNavigatorItem('去出租', 'static/images/count.svg', (context) => (BuildContext context){
    Navigator.of(context).pushNamed('/login');
  }),
];